/*
 * Demonstrate the for loop.
 *
 * Call this file ForDemo.java
 */
class ForDemo {
    public static void main(String args[]) {
        int count;

        // Notice count++ 
        // not count = count + 1
        // The latter rarely ever appears in professional Java programs.
        for(count = 0; count < 5; count++) 
            System.out.println("This is count: " + count);

        System.out.println("Done!");
    }
}
